import request from '@/utils/request'

// 查询采集文章标题，爆款标题列表
export function listHottitle(query) {
  return request({
    url: '/article/hottitle/list',
    method: 'get',
    params: query
  })
}

// 查询采集文章标题，爆款标题详细
export function getHottitle(id) {
  return request({
    url: '/article/hottitle/' + id,
    method: 'get'
  })
}

// 新增采集文章标题，爆款标题
export function addHottitle(data) {
  return request({
    url: '/article/hottitle',
    method: 'post',
    data: data
  })
}

// 修改采集文章标题，爆款标题
export function updateHottitle(data) {
  return request({
    url: '/article/hottitle',
    method: 'put',
    data: data
  })
}

// 删除采集文章标题，爆款标题
export function delHottitle(id) {
  return request({
    url: '/article/hottitle/' + id,
    method: 'delete'
  })
}

export function genTitle(data) {
  return request({
    url: '/article/hottitle/genTitle',
    method: 'post',
    data: data
  })
}

// 查询生成模型
export function PromptsSelect() {
  return request({
    url: '/article/funprompts/list',
    method: 'get'
  })
}

